/**  串口配置常用参数
parity 校验位
baudRate 波特率
dataBits 数据位
stopBits 停止位
**/
const CompanyName = 'xxxxxx公司'; // 和碳立方右上角的企业简称保持一致
const SerIP = '127.0.0.1'; // 供司磅电脑访问的ip。

/*地磅设备配置表,格式如下,最多可配置10条磅
磅编号:{dev:'串口号',
        options:{baundRate:串口的波特率}
}
*/
const SerDev = { 
    1:{
        dev:'COM2', // 设备路径
        options : {baudRate:1200},
        restartHandler : null, // 重连磅句柄
    },

    2:{
        dev:'COM3', // 设备路径
        options : {baudRate:1200},
        restartHandler : null,
    },
    // 3:{} 可以自己根据地磅数量和串口继续增加
};

// 摄像头配置表 // v0.3 增加多摄像头配置
const videoDev = {
    "192.168.0.91" : 1, // 摄像头IP:地磅编号
    "192.168.0.92" : 2
}


// 下面这一行不用改，除非你了解本程序并知道你在做什么
const PoundUri = ['null','/firstWeightWebsocket','/secondWeightWebsocket','/thirdWeightWebsocket',
'/fourthWeightWebsocket','/fifthWeightWebsocket','/sixthWeightWebsocket','/seventhWeightWebsocket',
'/eighthWeightWebsocket','/ninthWeightWebsocket','/tenthWeightWebsocket'];

exports.CompanyName = CompanyName;
exports.SerIP = SerIP;
exports.SerDev = SerDev;
exports.videoDev = videoDev;
exports.PoundUri = PoundUri;